package com.punai.customer.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.punai.common.annotation.Excel;
import com.punai.common.core.domain.BaseEntity;
import com.punai.common.utils.converter.FeeTypeConverter;
import com.punai.common.utils.converter.IsConverter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 特征对象 cus_feature
 *
 * @author ruoyi
 * @date 2022-12-04
 */
@ExcelIgnoreUnannotated
@ColumnWidth(20)
@HeadRowHeight(20)
public class CusFeature extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ExcelProperty("ID")
    private String id;

    /**
     * 公司id
     */
    @ExcelIgnore
    private Long companyId;

    /**
     * 特征名称
     */
    @ExcelProperty("名称")
    private String featureName;

    /**
     * 别名
     */
    @ExcelProperty("别名")
    private String aliasName;

    /**
     * 特征值
     */
    @ExcelProperty("特征值")
    private String featureValues;

    @ExcelProperty(value = "类型",converter = FeeTypeConverter.class)
    private String type;

    @ExcelProperty(value = "是否可输入",converter = IsConverter.class)
    private String isInput;

    /**
     * 是否参与计算(Y 参与 N 不参与)
     */
    @ExcelIgnore
    @Excel(name = "是否参与计算(Y 参与 N 不参与) ")
    private String calcFlag;

    /**
     * 是否名称特征项 (Y 是 N 否)
     */
    @ExcelIgnore
    @Excel(name = "是否名称特征项 (Y 是 N 否) ")
    private String isNameFeature;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Long userId;

    private Integer orderNum;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public void setFeatureName(String featureName) {
        this.featureName = featureName;
    }

    public String getFeatureName() {
        return featureName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setFeatureValues(String featureValues) {
        this.featureValues = featureValues;
    }

    public String getFeatureValues() {
        return featureValues;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setIsInput(String isInput) {
        this.isInput = isInput;
    }

    public String getIsInput() {
        return isInput;
    }

    public void setCalcFlag(String calcFlag) {
        this.calcFlag = calcFlag;
    }

    public String getCalcFlag() {
        return calcFlag;
    }

    public void setIsNameFeature(String isNameFeature) {
        this.isNameFeature = isNameFeature;
    }

    public String getIsNameFeature() {
        return isNameFeature;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("featureName", getFeatureName())
                .append("aliasName", getAliasName())
                .append("featureValues", getFeatureValues())
                .append("type", getType())
                .append("isInput", getIsInput())
                .append("calcFlag", getCalcFlag())
                .append("isNameFeature", getIsNameFeature())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("orderNum", getOrderNum())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
